The designers would like the message-tray to use different styles
depending on whether it is shown in the overview or not, so use
an :overview pseudo class as the top bar.
Main.overview.connect('showing', Lang.bind(this,
function() {
this._overviewVisible = true;
+ this.actor.add_style_pseudo_class('overview');
if (this._locked) {
this._unsetClickedSummaryItem();
this._unlock();
Main.overview.connect('hiding', Lang.bind(this,
function() {
this._overviewVisible = false;
+ this.actor.remove_style_pseudo_class('overview');
if (this._locked) {
this._unsetClickedSummaryItem();
this._unlock();